package com.company.cloud.pay.modules.mgr.controller.req;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.constant.BaseConstant.YNEnum;
import com.company.cloud.pay.modules.cache.model.PayApiConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class PayChannelConfigSaveParam extends BaseParam {

    @ApiModelProperty(value = "服务号", required = true)
    @NotEmpty(message = "服务号不能为空")
    private String serviceCode;

    @ApiModelProperty(value = "公司编号", required = true)
    @NotEmpty(message = "公司编号不能为空")
    private String companyNo;

    @ApiModelProperty(value = "支付通道编号", required = true)
    @NotEmpty(message = "支付通道编号不能为空")
    private String payChannelNo;

    @ApiModelProperty(value = "支付方式编号", required = true)
    @NotEmpty(message = "支付方式不能为空")
    private String tradeType;

    @ApiModelProperty(value = "支付通道参数", required = true)
    @NotNull(message = "支付通道参数不能为空")
    private PayApiConfig payChannelParam;

    @ApiModelProperty(value = "状态", required = true)
    @NotEmpty(message = "状态不能为空")
    private String state = YNEnum.YES.getCode();

}
